package com.elective.courseselect.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.elective.courseselect.dao.StudentSyllabusDao;
import com.elective.courseselect.entity.StudentSyllabusEntity;
import com.elective.courseselect.service.StudentSyllabusService;
import com.elective.courseselect.utils.PageUtils;
import com.elective.courseselect.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;



@Service("studentSyllabusService")
public class StudentSyllabusServiceImpl extends ServiceImpl<StudentSyllabusDao, StudentSyllabusEntity> implements StudentSyllabusService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<StudentSyllabusEntity> page = this.page(
                new Query<StudentSyllabusEntity>().getPage(params),
                new QueryWrapper<StudentSyllabusEntity>()
        );

        return new PageUtils(page);
    }

}